USE [OHNEW]
GO

/****** Object:  Table [dbo].[P_CustomerDeliveryto]    Script Date: 01/23/2013 16:22:59 ******/
SET ANSI_NULLS ON
GO

SET QUOTED_IDENTIFIER ON
GO

SET ANSI_PADDING ON
GO

CREATE TABLE [dbo].[P_CustomerDeliveryto](
	[ID] [uniqueidentifier] NOT NULL,
 	[MainID] [uniqueidentifier] NOT NULL,
	[LineNumber] [int] NULL,
	[Deliveryto] [varchar](250) NULL,
	[DContact] [varchar](50) NULL,
	[DTel] [varchar](50) NULL,
	[IsDefault] [int] NOT NULL Default 0
 CONSTRAINT [PK_P_CustomerDeliveryto] PRIMARY KEY CLUSTERED 
(
	[ID] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]

GO

SET ANSI_PADDING OFF
GO

ALTER TABLE [dbo].[P_CustomerDeliveryto] ADD  DEFAULT (newid()) FOR [ID]
GO


